 import login from './login'
 import Home from './Home'
 import classes from './class/classes'
 import student from './student/student'
 import echart from './echart/echart'
 import admin from './admin/admin'
 import homework from './homework/homework'
 import notfind from './notfind'
 import CreateArticle from './homework/CreateArticle'
 let router = [{
         path: '/login',
         component: login,
         name: '用户登录',
         hidden: true
     },
     {
         path: '/',
         name: '学校',
         component: Home,
         redirect: '/classes',
         iconCls: 'fa fa-id-card-o',
         children: [
             { path: '/classes', component: classes, name: '班级管理' },
             { path: '/student', component: student, name: '学生管理' },
             { path: '/echart', component: echart, name: '学生统计' },
         ]
     },
     {
         path: '/homework',
         name: '作业管理',
         component: Home,
         iconCls: 'fa fa-id-card-o',
         children: [
             { path: '/homework', component: homework, name: '任务管理' },
             { path: '/CreateArticle', component: CreateArticle, name: '文章发布' },
         ]
     },
     {
         path: '/admin',
         name: '管理员',
         component: Home,
         redirect: '/',
         iconCls: 'fa fa-id-card-o',
         children: [
             { path: '/admin', component: admin, name: '管理员信息' },
         ]
     },

     {
         path: '/notfind',
         name: '404',
         component: Home,
         children: [
             { path: '/notfind', component: notfind, name: '404页面' },
         ]
     }

 ];

 export default router;